<?php echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"; ?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
	xmlns:tns="$webroot/soap/math" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Math"
	targetNamespace="$webroot/soap/math">
	<wsdl:types>
		<xsd:schema targetNamespace="$webroot/soap/math">
			<xsd:element name="AuthHeader" type="tns:AuthHeader" />
			<xsd:complexType name="AuthHeader">
				<xsd:sequence>
					<xsd:element name="password" type="xsd:string" />
					<xsd:element name="username" type="xsd:string" />
					<xsd:element name="token" type="xsd:string" />
				</xsd:sequence>
			</xsd:complexType>
			<xsd:element name="ResHeader" type="tns:ResHeader" />
			<xsd:complexType name="ResHeader">
				<xsd:sequence>
					<xsd:element name="status" type="xsd:int" />
					<xsd:element name="error" type="xsd:string" />
				</xsd:sequence>
			</xsd:complexType>
			<xsd:element name="AddRequest">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="a" type="xsd:int"></xsd:element>
						<xsd:element name="b" type="xsd:int"></xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="AddResponse">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="sum" type="xsd:int"></xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
		</xsd:schema>
	</wsdl:types>

	<wsdl:message name="AuthHeader">
		<wsdl:part element="tns:AuthHeader" name="AuthHeader" />
	</wsdl:message>
	<wsdl:message name="ResHeader">
		<wsdl:part element="tns:ResHeader" name="ResHeader" />
	</wsdl:message>
	<wsdl:message name="AddRequest">
		<wsdl:part name="parameters" element="tns:AddRequest"></wsdl:part>
	</wsdl:message>
	<wsdl:message name="AddResponse">
		<wsdl:part name="parameters" element="tns:AddResponse"></wsdl:part>
	</wsdl:message>

	<wsdl:portType name="Math">
		<wsdl:operation name="add">
			<wsdl:input message="tns:AddRequest"></wsdl:input>
			<wsdl:output message="tns:AddResponse"></wsdl:output>
		</wsdl:operation>
	</wsdl:portType>

	<wsdl:binding name="MathSOAP" type="tns:Math">
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="add">
			<soap:operation soapAction="$webroot/soap/math/add" />
			<wsdl:input>
				<soap:header message="tns:AuthHeader" part="AuthHeader"	use="literal" />
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:header message="tns:ResHeader" part="ResHeader" use="literal" />
				<soap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:service name="Math">
		<wsdl:port binding="tns:MathSOAP" name="MathSOAP">
			<soap:address location="$webroot/soap/math" />
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>
<!--COMPLETE-->
